﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Pixysoft.Framework.Logs
{
    public interface ILogRecord : IComparable<ILogRecord>
    {
        /// <summary>
        /// 全局唯一id
        /// </summary>
        string Id { get;set;}

        /// <summary>
        /// 记录的ip
        /// </summary>
        string Ip { get;set;}

        /// <summary>
        /// 日期
        /// </summary>
        DateTime Date { get;}

        /// <summary>
        /// 原始日期
        /// </summary>
        string RawDate { get;set;}

        /// <summary>
        /// 等级
        /// </summary>
        LogLevel Level { get;set;}

        /// <summary>
        /// 模块名
        /// </summary>
        string Module { get;set;}

        /// <summary>
        /// 内容
        /// </summary>
        string Text { get;set;}

        /// <summary>
        /// exception的frame
        /// </summary>
        ILogFrameCollection Frames { get;}

        /// <summary>
        /// 文件路径
        /// </summary>
        string Filepath { get;set;}
    }
}
